package router

import (
	"github.com/gin-gonic/gin"
	"mxshop_api/goods_web/api/banner"
	"mxshop_api/goods_web/middlewares"
)

func BannerRouter(group *gin.RouterGroup) {
	BannerRouter := group.Group("banner").Use(middlewares.JWTAuth())
	{
		BannerRouter.GET("", banner.List)
		BannerRouter.POST("", banner.New)
		BannerRouter.PUT("/:id", banner.Update)
		BannerRouter.DELETE("/:id", banner.Delete)
	}
}
